<?php
$mapping = array();


$fileList = Fso::getDirFiles(APP_ROOT . 'Base');
foreach ($fileList as $file) {
	if (!is_file($file)) {
		continue;
	}
	$className = basename($file, '.class.php');
	$mapping[$className] = $file;
}
$fileList = Fso::getDirFiles(APP_ROOT . 'Mo');
foreach ($fileList as $file) {
	if (!is_file($file)) {
		continue;
	}
	$className = basename($file, '.class.php');
	$mapping[$className] = $file;
}


$file = APP_ROOT.'Config'. DS . 'classMapping.cfg.php';
$ret = Fso::write($file, 'return '.var_export($mapping,true), 'php');
var_dump($ret);